<?php
namespace Admin\Model;
use Think\Model;

class AdminModel extends Model{
    protected $_validate = array(
        array('admin_name','','用户名已经被注册.',1,'unique'),
    );
    protected $_auto=array(
      array('logintime','time','1','function')  
    );
    
}